#include "libedge.h"
#include <iostream>

class MyEdge:public Edge{
public:
    virtual void onRecieve(const std::string& data) override{
        std::cout<<data;
    }

    virtual void onLog(const std::string& data) override{
        std::cout<<data;
    }
};

int main()
{
    EdgeInitInfo initInfo;
    initInfo.appname = "cableapp";
    initInfo.model = "cable";  
    MyEdge edge;
    edge.init(initInfo);
    edge.uploadEventData("hello ,uploadEventData");
    edge.uploadRealData("hello ,uploadRealData");
    return 0;
}